//
//  SelectTag.m
//  HotWord
//
//  Created by iPhuan on 13-4-1.
//
//

#import "SelectTag.h"

@implementation SelectTag

- (void)encodeWithCoder:(NSCoder *)aCoder
{
	[aCoder encodeObject:self.tagId forKey:@"tagId"];
	[aCoder encodeObject:self.name forKey:@"name"];
	[aCoder encodeObject:self.subTags forKey:@"subTags"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
	if ([self init]) {
		self.tagId = [aDecoder decodeObjectForKey:@"tagId"];
		self.name = [aDecoder decodeObjectForKey:@"name"];
		self.subTags = [aDecoder decodeObjectForKey:@"subTags"];
    }
	return self;
}

-(void)dealloc
{
    [_tagId release];
    [_name release];
    [_subTags release];
    [super dealloc];
}


@end
